package com.groups.entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Good entity. @author MyEclipse Persistence Tools
 */

public class Good implements java.io.Serializable {

	// Fields

	private Integer goodId;
	private String goodName;
	private Float goodPrice;
	private Float goodOldprice;
	private Float goodDiscount;
	private Float goodSave;
	private Timestamp startTime;
	private Timestamp endTime;
	private String goodInfo;
	private Integer goodkind;
	private String goodUrl;
	private Set orders = new HashSet(0);

	// Constructors

	/** default constructor */
	public Good() {
	}

	/** minimal constructor */
	public Good(String goodName, Float goodPrice, Float goodOldprice,
			Float goodDiscount, Float goodSave, Timestamp startTime,
			Timestamp endTime, Integer goodkind) {
		this.goodName = goodName;
		this.goodPrice = goodPrice;
		this.goodOldprice = goodOldprice;
		this.goodDiscount = goodDiscount;
		this.goodSave = goodSave;
		this.startTime = startTime;
		this.endTime = endTime;
		this.goodkind = goodkind;
	}

	/** full constructor */
	public Good(String goodName, Float goodPrice, Float goodOldprice,
			Float goodDiscount, Float goodSave, Timestamp startTime,
			Timestamp endTime, String goodInfo, Integer goodkind,
			String goodUrl, Set orders) {
		this.goodName = goodName;
		this.goodPrice = goodPrice;
		this.goodOldprice = goodOldprice;
		this.goodDiscount = goodDiscount;
		this.goodSave = goodSave;
		this.startTime = startTime;
		this.endTime = endTime;
		this.goodInfo = goodInfo;
		this.goodkind = goodkind;
		this.goodUrl = goodUrl;
		this.orders = orders;
	}

	// Property accessors

	public Integer getGoodId() {
		return this.goodId;
	}

	public void setGoodId(Integer goodId) {
		this.goodId = goodId;
	}

	public String getGoodName() {
		return this.goodName;
	}

	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}

	public Float getGoodPrice() {
		return this.goodPrice;
	}

	public void setGoodPrice(Float goodPrice) {
		this.goodPrice = goodPrice;
	}

	public Float getGoodOldprice() {
		return this.goodOldprice;
	}

	public void setGoodOldprice(Float goodOldprice) {
		this.goodOldprice = goodOldprice;
	}

	public Float getGoodDiscount() {
		return this.goodDiscount;
	}

	public void setGoodDiscount(Float goodDiscount) {
		this.goodDiscount = goodDiscount;
	}

	public Float getGoodSave() {
		return this.goodSave;
	}

	public void setGoodSave(Float goodSave) {
		this.goodSave = goodSave;
	}

	public Timestamp getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public Timestamp getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public String getGoodInfo() {
		return this.goodInfo;
	}

	public void setGoodInfo(String goodInfo) {
		this.goodInfo = goodInfo;
	}

	public Integer getGoodkind() {
		return this.goodkind;
	}

	public void setGoodkind(Integer goodkind) {
		this.goodkind = goodkind;
	}

	public String getGoodUrl() {
		return this.goodUrl;
	}

	public void setGoodUrl(String goodUrl) {
		this.goodUrl = goodUrl;
	}

	public Set getOrders() {
		return this.orders;
	}

	public void setOrders(Set orders) {
		this.orders = orders;
	}

}